package cn.gson.work.model.pojos;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Objects;

@Entity
public class Hyjlu {
    private int jid;
    private String hbm;
    private String hzt;
    private String sname;

    @Id
    @Column(name = "JID")
    public int getJid() {
        return jid;
    }

    public void setJid(int jid) {
        this.jid = jid;
    }

    @Basic
    @Column(name = "HBM")
    public String getHbm() {
        return hbm;
    }

    public void setHbm(String hbm) {
        this.hbm = hbm;
    }

    @Basic
    @Column(name = "HZT")
    public String getHzt() {
        return hzt;
    }

    public void setHzt(String hzt) {
        this.hzt = hzt;
    }

    @Basic
    @Column(name = "SNAME")
    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Hyjlu hyjlu = (Hyjlu) o;
        return jid == hyjlu.jid &&
                Objects.equals(hbm, hyjlu.hbm) &&
                Objects.equals(hzt, hyjlu.hzt) &&
                Objects.equals(sname, hyjlu.sname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(jid, hbm, hzt, sname);
    }
}
